import unittest
from parameterized import parameterized


class TestDemo(unittest.TestCase):
    data_list = [
        ['root', 'pwd'],
        ['root1', 'pwd'],
    ]

    # 装饰器
    @parameterized.expand(data_list)
    def test_method1(self, user, pwd):
        print(user, pwd)


if __name__ == '__main__':
    unittest.main(verbosity=2)
